import { ref } from 'vue';
import { useStore } from 'vuex';

let store;

const getLatestBrand = (sorte, parmas) => { // 获取品牌信息
    let store = useStore();
    return new Promise((resolve, reject) => {
        store.dispatch('proxyAction', {
            name: 'getLatestBrand',
            queries: {
                brand: process.env.VUE_APP_BRAND
            }
        }).then(res => {
            resolve(res);
        }).catch(err => {
            reject(err);
        })
    }) 
}

export {
    getLatestBrand
}


